﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using GamePlugin.Logics.Core;

namespace GamePlugin.Logics.Data
{
    public enum ERunMode : int
    {
        None = 0,
        TestSingleMode,
        TestAllMode,
        TestAllWithLowValuesMode,
        NormalMode,
    }

    public class SearchOptionData : PluginObject
    {

        public static readonly DependencyProperty TestBuyPriceProperty =
            DependencyProperty.Register("TestBuyPrice", typeof(int), typeof(SearchOptionData),
            new FrameworkPropertyMetadata(2, null));
        [Editable]
        public int TestBuyPrice
        {
            get { return (int)GetValue(TestBuyPriceProperty); }
            set { SetValue(TestBuyPriceProperty, value); }
        }

        public static readonly DependencyProperty AccountNameProperty =
            DependencyProperty.Register("AccountName", typeof(string), typeof(SearchOptionData),
            new FrameworkPropertyMetadata("bendaowei@gmail.com", null));
        [Editable]
        public string AccountName
        {
            get { return (string)GetValue(AccountNameProperty); }
            set { SetValue(AccountNameProperty, value); }
        }

        public static readonly DependencyProperty PasswordProperty =
            DependencyProperty.Register("Password", typeof(string), typeof(SearchOptionData), null);
        [Editable]
        public string Password
        {
            get { return (string)GetValue(PasswordProperty); }
            set { SetValue(PasswordProperty, value); }
        }

        public static readonly DependencyProperty RunModeProperty =
            DependencyProperty.Register("RunMode", typeof(int), typeof(SearchOptionData),
            new FrameworkPropertyMetadata(2, null));
        [Editable]
        public int RunMode
        {
            get { return (int)GetValue(RunModeProperty); }
            set { SetValue(RunModeProperty, value); }
        }

        public static readonly DependencyProperty CharacterCountProperty =
            DependencyProperty.Register("CharacterCount", typeof(int), typeof(SearchOptionData),
            new FrameworkPropertyMetadata(1, null));
        [Editable]
        public int CharacterCount
        {
            get { return (int)GetValue(CharacterCountProperty); }
            set { SetValue(CharacterCountProperty, value); }
        }
    }
}
